<table>
	<td width="50%" valign="top">
		<div class="book_list">
			<div class="book_list_label">
				Danh sách<br/>khách hàng
			</div>
			<div class="book_list_content">
				<?php
				foreach($book_list as $book){
					$first_name = '';
					$name = trim($book['name']);
					$name_arr = explode(' ',$name);
					if(!empty($name_arr)){
						for($i=count($name_arr)-1;$i>=0;$i--){
							$name_arr[$i] = trim($name_arr[$i]);
							if(!empty($name_arr[$i])){
								$first_name = $name_arr[$i];
								break;
							}
						}
					}
					
				?>
					<div class="book_item" draggable="true" ondragstart="drag(event)" title="<?=$name?>">
						<table>
							<td align="center" valign="middle">
								<?=$first_name?>
							</td>
						</table>
					</div>
				<?php
				}
				?>
			</div>
		</div>
		<div class="clearAll"></div>
	</td>
	<td valign="top">
		<!-- <div id="div1" ondrop="drop(event)" ondragover="allowDrop(event)" style='width:100px;height:100px;border:1px solid;'></div> -->
		<div class="driver_list">
			<div class="driver_list_label">
				Tài xế
			</div>
			<div class="driver_list_content">
				<select id="driver_id">
					<?php
					$i = 0;
					foreach($driver_list as $driver){
						$driver_id = $driver['id'];
						$selected = '';
					?>
						<option value="<?=$driver_id?>" <?=$selected?> ><?=$driver['name']?></option>
					<?php
						$i++;
					}
					?>
				</select>
			</div>
		</div>

		<div class="vehicle_list">
			<div class="vehicle_list_label">
				Xe
			</div>
			<div class="vehicle_list_content">
				<select id="vehicle_id">
					<?php
					$i = 0;
					foreach($vehicle_list as $vehicle){
						$vehicle_id = $vehicle['id'];
						$selected = '';
					?>
						<option value="<?=$vehicle_id?>" <?=$selected?> ><?=$vehicle['number_plate']?></option>
					<?php
						$i++;
					}
					?>
				</select>
			</div>
		</div>
	</td>
</table>
